package com.hao.serviceImpl;
import com.hao.Dao.workDao;
import com.hao.DaoImpl.workImpl;
import com.hao.entity.work;
import com.hao.service.workservice;

import java.util.List;

/**
 * Created by Administrator on 2018/8/8.
 */
    public class workserviceImpl implements workservice {
    @Override
    public List<work> find() {

       workDao dao=new workImpl();
        return dao.find();
    }

    @Override
    public int dele(int wid) {
        workDao dao=new workImpl();
        return dao.dele(wid);
    }

    @Override
    public int add(work add) {
        workDao dao=new workImpl();
        return dao.add(add);
    }
}
